<?php

use think\facade\Route;


Route::group('admin', function () {
    //文章分类---管理后台
    Route::group('adminArticleClassify', function () {
        Route::get('listAll', 'AdminArticleClassify/listAll');
        Route::get('listAllForSelect', 'AdminArticleClassify/listAllForSelect');
        Route::get('getOne', 'AdminArticleClassify/getOne');
        Route::post('createOne', 'AdminArticleClassify/createOne');
        Route::post('updateOne', 'AdminArticleClassify/updateOne');
        Route::post('changeStatus', 'AdminArticleClassify/changeStatus');
        Route::post('changeDel', 'AdminArticleClassify/changeDel');
    });


    //文章列表---管理后台
    Route::group('adminArticle', function () {
        Route::get('listAll', 'AdminArticle/listAll');
        Route::get('listStaffArticle', 'AdminArticle/listStaffArticle');
        Route::get('getOne', 'AdminArticle/getOne');
        Route::post('createOne', 'AdminArticle/createOne');
        Route::post('updateOne', 'AdminArticle/updateOne');
        Route::post('changeStatus', 'AdminArticle/changeStatus');
        Route::post('syncStaffArticle', 'AdminArticle/syncStaffArticle');
    });


    //员工文章---管理后台
    Route::group('adminStaffArticle', function () {
        Route::get('listAll', 'WxAppArticle/listAll');
        Route::get('getOne', 'AdminArticle/getOne');
        Route::post('updateOne', 'AdminArticle/updateOne');
        Route::post('changeStatus', 'WxAppArticle/changeStatus');
    });

//文章设置---管理后台
    Route::group('adminArticleConfig', function () {
        Route::get('getOne', 'AdminArticleConfig/getOne');
        Route::post('updateOne', 'AdminArticleConfig/updateOne');
        Route::post('addArticleUseYear', 'AdminArticleConfig/addArticleUseYear');
        Route::get('staffList', 'AdminArticleConfig/staffList');
    });


});


Route::group('app', function () {

//文章分类---WxApp端
    Route::group('wxAppArticleClassify', function () {
        Route::get('getAll', 'WxAppArticleClassify/getAll');
    });




//文章列表---WxApp端
    Route::group('wxAppArticle', function () {

        Route::get('listAll', 'WxAppArticle/listAll');
        Route::get('getOne', 'WxAppArticle/getOne');
        Route::get('listMyArticle', 'WxAppArticle/listMyArticle');
        Route::post('importArticle', 'WxAppArticle/importArticle');
        Route::post('logicDel', 'WxAppArticle/logicDel');
        Route::post('syncArticle', 'WxAppArticle/syncArticle');
        Route::get('syncArticle', 'WxAppArticle/syncArticle');
        Route::get('rankClient', 'WxAppArticle/rankClient');
        Route::post('rankClient', 'WxAppArticle/rankClient');
        Route::post('rankArticle', 'WxAppArticle/rankArticle');
        Route::post('confirmSync', 'WxAppArticle/confirmSync');
        Route::get('viewRecord', 'WxAppArticle/viewRecord');
        Route::get('staffClientDetail', 'WxAppArticle/staffClientDetail');
        Route::get('articleExtensionDetails', 'WxAppArticle/articleExtensionDetails');
        Route::get('viewClientDetailed', 'WxAppArticle/viewClientDetailed');
        Route::post('createArticleQr', 'WxAppArticle/createArticleQr');
        Route::post('shareRecord', 'WxAppArticle/shareRecord');
    });

    Route::group('articleHtml', function () {
        Route::post('html', 'ArticleHtml/html');
        Route::post('msg', 'ArticleHtml/msg');
        Route::post('articleList', 'ArticleHtml/articleList');
        Route::post('myArticle', 'ArticleHtml/myArticle');
        Route::post('upRecordLength', 'ArticleHtml/upRecordLength');
        Route::post('reportDuration', 'ArticleHtml/reportDuration');
        Route::post('shareRecord', 'ArticleHtml/shareRecord');
    });


});











//===================================================================oldapi

//文章分类---WxApp端
Route::group('wxAppArticleClassify', function () {
    Route::any('getAll', 'WxAppArticleClassify/getAll');
});


//文章分类---管理后台
Route::group('adminArticleClassify', function () {
    Route::any('listAll', 'AdminArticleClassify/listAll');
    Route::any('listAllForSelect', 'AdminArticleClassify/listAllForSelect');
    Route::any('getOne', 'AdminArticleClassify/getOne');
    Route::any('createOne', 'AdminArticleClassify/createOne');
    Route::any('updateOne', 'AdminArticleClassify/updateOne');
    Route::any('changeStatus', 'AdminArticleClassify/changeStatus');
});


//文章列表---WxApp端
Route::group('wxAppArticle', function () {
    Route::any('listAll', 'WxAppArticle/listAll');
    Route::any('listAll', 'WxAppArticle/listAll');
    Route::any('getOne', 'WxAppArticle/getOne');
    Route::any('listMyArticle', 'WxAppArticle/listMyArticle');
    Route::any('importArticle', 'WxAppArticle/importArticle');
    Route::any('logicDel', 'WxAppArticle/logicDel');
    Route::any('syncArticle', 'WxAppArticle/syncArticle');
    Route::any('syncArticle', 'WxAppArticle/syncArticle');
    Route::any('rankClient', 'WxAppArticle/rankClient');
    Route::any('rankClient', 'WxAppArticle/rankClient');
    Route::any('rankArticle', 'WxAppArticle/rankArticle');
    Route::any('confirmSync', 'WxAppArticle/confirmSync');
    Route::any('viewRecord', 'WxAppArticle/viewRecord');
    Route::any('staffClientDetail', 'WxAppArticle/staffClientDetail');
    Route::any('articleExtensionDetails', 'WxAppArticle/articleExtensionDetails');
    Route::any('viewClientDetailed', 'WxAppArticle/viewClientDetailed');
    Route::any('createArticleQr', 'WxAppArticle/createArticleQr');
    Route::any('shareRecord', 'WxAppArticle/shareRecord');
});

Route::group('articleHtml', function () {
    Route::any('html', 'ArticleHtml/html');
    Route::any('msg', 'ArticleHtml/msg');
    Route::any('articleList', 'ArticleHtml/articleList');
    Route::any('myArticle', 'ArticleHtml/myArticle');
    Route::any('upRecordLength', 'ArticleHtml/upRecordLength');
    Route::any('reportDuration', 'ArticleHtml/reportDuration');
    Route::any('shareRecord', 'ArticleHtml/shareRecord');
});


//文章列表---管理后台
Route::group('adminArticle', function () {
    Route::any('listAll', 'AdminArticle/listAll');
    Route::any('listStaffArticle', 'AdminArticle/listStaffArticle');
    Route::any('getOne', 'AdminArticle/getOne');
    Route::any('createOne', 'AdminArticle/createOne');
    Route::any('updateOne', 'AdminArticle/updateOne');
    Route::any('changeStatus', 'AdminArticle/changeStatus');
    Route::any('syncStaffArticle', 'AdminArticle/syncStaffArticle');
});


//员工文章---管理后台
Route::group('adminStaffArticle', function () {
    Route::get('listAll', 'WxAppArticle/listAll');
    Route::get('getOne', 'AdminArticle/getOne');
    Route::post('updateOne', 'AdminArticle/updateOne');
    Route::post('changeStatus', 'WxAppArticle/changeStatus');
});

//文章设置---管理后台
Route::group('adminArticleConfig', function () {
    Route::get('getOne', 'AdminArticleConfig/getOne');
    Route::post('updateOne', 'AdminArticleConfig/updateOne');
    Route::post('addArticleUseYear', 'AdminArticleConfig/addArticleUseYear');
    Route::get('staffList', 'AdminArticleConfig/staffList');
});








